import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class EMapInstanceType
    
    export  class EMapInstanceType
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public static __read(arg1: SerializeStream): EMapInstanceType
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 40) 
            {
                throw new MarshalException();
            }
            return EMapInstanceType.convert(loc1);
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): EMapInstanceType
        {
            return new EMapInstanceType(arg1);
        }

        public static /* const */_EMapInstanceTypeCopy: int=1;

        public static /* const */_EMapInstanceTypeGuild: int=2;

        public static /* const */_EMapInstanceTypeBattlefield: int=3;

        public static /* const */_EMapInstanceTypeSpa: int=4;

        public static /* const */_EMapInstanceTypeVIPHook: int=5;

        public static /* const */_EMapInstanceTypeGuildWar: int=6;

        public static /* const */_EMapInstanceTypeArenaBattle: int=7;

        public static /* const */_EMapInstanceTypePeaceField: int=8;

        public static /* const */_EMapInstanceTypePetExplore: int=9;

        public static /* const */_EMapInstanceTypeNewBattlefield: int=10;

        public static /* const */_EMapInstanceTypeGuildAltar: int=11;

        public static /* const */_EMapInstanceTypeArenaCrossBattle: int=12;

        public static /* const */_EMapInstanceTypeGuildPasture: int=13;

        public static /* const */_EMapInstanceTypeGuildDefense: int=14;

        public static /* const */_EMapInstanceTypeGangFightsBattle: int=15;

        public static /* const */_EMapInstanceTypeCrossBoss: int=16;

        public static /* const */_EMapInstanceTypeWrestleBattle: int=17;

        public static /* const */_EMapInstanceTypeCrossDefense: int=18;

        public static /* const */_EMapInstanceTypeBossField: int=19;

        public static /* const */_EMapInstanceTypeCrossSecret: int=20;

        public static /* const */_EMapInstanceTypeEatBeans: int=21;

        public static /* const */_EMapInstanceTypeDirectionDrop: int=22;

        public static /* const */_EMapInstanceTypeRobCityTwo: int=23;

        public static /* const */_EMapInstanceTypeRobCityThree: int=24;

        public static /* const */_EMapInstanceTypeKingChampionship: int=25;

        public static /* const */_EMapInstanceTypeCrossSea: int=26;

        public static /* const */_EMapInstanceTypeCountryMoney: int=27;

        public static /* const */_EMapInstanceTypeRobFlag: int=28;

        public static /* const */_EMapInstanceTypeCrossBossField: int=29;

        public static /* const */_EMapInstanceTypeGuildElite: int=30;

        public static /* const */_EMapInstanceTypeRobIsland: int=32;

        public static /* const */_EMapInstanceTypeFireMonsterIsland: int=33;

        public static /* const */_EMapInstanceTypeFireIslandCenter: int=34;

        public static /* const */_EMapInstanceTypeUpgradeCrossSecret: int=35;

        public static /* const */_EMapInstanceTypeCrossGuildWar: int=31;

        public static /* const */_EMapInstanceTypeLadder: int=37;

        public static /* const */_EMapInstanceTypeDominion: int=38;

        public static /* const */_EMapInstanceTypeChaosFight: int=39;

        public static /* const */_EMapInstanceTypeUnique: int=0;

        public static /* const */_EMapInstanceTypeCrossSpiritWar: int=36;

        public /* var */__value: int;
    }
